package com.kotlin.demo

fun main() {
    var name = "sldkflsdjflsjf"

    val length = with(name, ::getStrLength)
    val info = with(length, ::getLengthInfo)
    val str = with(info, ::getInfoMap)
    with(str,::show)

}

fun getStrLength(str: String) = str.length
fun getLengthInfo(length: Int) = "长度是$length"
fun getInfoMap(info: String) = "$info"
fun show(str: String) = println(str)